<template>
  <div class="castMoreLink" v-cloak>
    <div class="castMoreLink-title textCenter"><span class="font13">更多干货</span></div>
    <div class="castMoreLink-list">
      <ul flex="main:justify">
        <li v-for="moreLink in moreLInks">
          <router-link :to="{ path: '/discover/cast/big_cast' }">
            <span><img v-lazy="moreLink.img"></span>
            <p class="font12">{{ moreLink.dec }}</p>
          </router-link>
        </li>
      </ul>
    </div>
  </div>
</template>
<script type="text/babel">
  export default {
    data () {
      return {
        moreLInks: [
          { img: '', dec: '幼儿时期接收新生事物的能力和语言发展都特别快幼儿时期接收新生事物的能力和语言发展都特别快' },
          { img: '', dec: '幼儿时期接收新生事物的能力和语言发展都特别快' }
        ]
      }
    }
  }
</script>
<style scoped lang="scss">
  .castMoreLink{
    width: 100%;
    box-sizing: border-box;
    padding: 0.24rem 0.12rem 0.3rem 0.12rem;
    .castMoreLink-title{
      height: 0.2rem;
      position: relative;
      span{
        display: block;
        margin: 0 auto;
        width: 0.6rem;
        line-height: 0.2rem;
        position: relative;
      }
      span:before{
        content: '';
        position: absolute;
        left: -0.14rem;
        top: 0.07rem;
        width: 0.05rem;
        height: 0.05rem;
        background: rgba(255,255,255,.2);
        transform: rotate(45deg);
      }
      span:after{
        content: '';
        position: absolute;
        right: -0.14rem;
        top: 0.07rem;
        width: 0.05rem;
        height: 0.05rem;
        background: rgba(255,255,255,.2);
        transform: rotate(45deg);
      }
    }
    .castMoreLink-title:before{
      content: '';
      width: 0.8rem;
      position: absolute;
      left: 0.46rem;
      top: 0.1rem;
      height: 1px;
      background: rgba(255,255,255,.2);
    }
    .castMoreLink-title:after{
      content: '';
      width: 0.8rem;
      position: absolute;
      right: 0.46rem;
      top: 0.1rem;
      height: 1px;
      background: rgba(255,255,255,.2);
    }
    .castMoreLink-list{
      margin-top: 0.2rem;
      width: 100%;
      li{
        float: left;
        width: 1.7rem;
        span{
          display: block;
          width: 1.7rem;
          height: 1rem;
          overflow: hidden;
          background:#d8d8d8;
          img{
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
          }
        }
        p{
          margin-top: 0.12rem;
          line-height: 0.18rem;
          color: #ffffff;
          opacity: 0.6;
          height: 0.36rem;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
        }
      }
    }
    .castMoreLink-list:after{
      content: '';
      display: flex;
      width: 0;
      height: 0;
      visibility: hidden;
      clear: both;
    }
  }
</style>
